require 'rubygems'
require 'hpricot'
require "open-uri"

namespace :site_heart_beat do  
  desc "tool_site_heart_beat"
  
  task :take_pulses => :environment do 
    UserToolSetting::SiteHealth.take_pulses!
  end
  
  task :send_emails => :environment do
    UserToolSetting::SiteHealth.send_emails
  end
  
  task :send_sms => :environment do
    UserToolSetting::SiteHealth.send_sms(2)
  end
end